import request from '@/utils/request'

// 查询私教预约管理列表
export function listPersonalReservation(query) {
  return request({
    url: '/keep/reservation/list',
    method: 'get',
    params: query
  })
}

// 查询私教预约管理详细
export function getPersonalReservation(id) {
  return request({
    url: '/keep/reservation/' + id,
    method: 'get'
  })
}

// 新增私教预约管理
export function addPersonalReservation(data) {
  return request({
    url: '/keep/reservation',
    method: 'post',
    data: data
  })
}

// 修改私教预约管理
export function updatePersonalReservation(data) {
  return request({
    url: '/keep/reservation',
    method: 'put',
    data: data
  })
}

// 删除私教预约管理
export function delPersonalReservation(id) {
  return request({
    url: '/keep/reservation/' + id,
    method: 'delete'
  })
}
